﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace msBsc.WebUi.mMall.Public
{
    public partial class mfTravelSpecialtyInfo : msBsc.Cls.mbPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        private void GetSpecialtyInfo()
        {
            string specialtyId = this.GetParamHtValue("specialtyId");
            if (string.IsNullOrEmpty(specialtyId))
            {
                //this.ExecJScript(@"window.location.h");
                return;
            }
            using (msBsc.AppLogic.DataAlc.CBizPushSpecialty specialty = new AppLogic.DataAlc.CBizPushSpecialty())
            {
                DataSet ds = specialty.GetSpecialByIdWithPrevNext(specialtyId);
                string strjson = msBsc.AppLogic.Cfg.HttpTools.GetJsonByTable(ds.Tables[0], "", "", 1, 20, "");
                this.ExecJScript(@"setScenicInfo(" + strjson + @");");
            }
        }

        public override void DoAction()
        {
            if (this.strAction == "init")
            {
                GetSpecialtyInfo();
                base.DoAction();
            }
        }
    }
}